<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
<body>
<h:form>
    <h:commandButton value="#{mainloc.addelement}" action="/work/UploaderPage.xhtml"/>
<h:dataTable value="#{mainlist.allData.positionList}" var="data">
    <h:column>
         <h:commandLink value="#{mainloc.todell}" action="#{mainlist.deleteElementFromData}">
        <f:setPropertyActionListener value="#{data.versionCode}" target="#{mainlist.versionIdForDel}" />
         </h:commandLink>
    </h:column>
    <h:column>
        <f:facet name="header">#{mainloc.name}</f:facet>
        <h:commandLink value="#{data.name}" action="EditPage.xhtml">
            <f:setPropertyActionListener value="#{data}" target="#{edit.dataPosition}" />
        </h:commandLink>
    </h:column>
    <h:column>
        <f:facet name="header">#{mainloc.image}</f:facet>
        <h:graphicImage value="/image?image=#{data.image}" />
    </h:column>
</h:dataTable>
    <h:commandLink action="#{mainlist.logOut}" value="#{mainloc.exit}" />
</h:form>
</body>
</html>